find volume with unit cubes